#!/bin/bash

HASHTABLE_FILE="../../src/hashtable/lockfree_hashtable.c"

echo "Analyzing hashtable implementation..."
vsyncer info $HASHTABLE_FILE

echo "Optimizing hashtable implementation..."
vsyncer optimize -A -1 $HASHTABLE_FILE

echo "Verifying optimization..."
vsyncer verify $HASHTABLE_FILE

echo "Running hashtable benchmarks..."
cd ../../
make
./build/tests/benchmark/bench_hashtable 